[Root @ localhost ~] # Ifconfig eth0: 1 192.168.10.63 netmask 255.255.255.0 up (add IP on this Nic)
Ah, only one sentence
[Root @ localhost ~] # Ifconfig-
Delete[Root @ localhost ~] # Ip addr del 192.168.10.63 dev eth0: 1
Warning: Executing wildcard deletion to stay compatible with old scripts.Explicitly specify the prefix length (192.168.10.63/32) to avoid this warning.This special behaviour is likely to disappear in further releases,Fix your scr
~] $ CAT/etc/resolv. conf# Generated by NetworkManagerNameserver 202.96.128.86Nameserver 202.96.128.166
Other aspectsService Network start // start a network serviceService Network stop // stop a network serviceService Network restart // restart the network serviceService Network Status // view the network service status
Ifconfig eth0 192.168.10.222 netmask 255.255.255.0 // temporarily modify the interface IP address (no need to restart the interface
paragraph as an example. Their respective domains should be computed in this way.21-16=5 is all 1 of the number minus the first two paragraphs of 16 1 is the number of the third paragraph 1. The mask for the third paragraph is equivalent to 542 conversion to 8-bit binary 00101010 and third segment subnet Mask 5 1 that is 11111000 corresponds to the operation of the position00101010 corresponds to decimal number is 4211111000 Subnet Mask00101000 the domain that corresponds to the operation of th
What is the difference between 192.168.2.1/24 and 192.168.1.1/24?
Is two different network segments, the subnet mask is 24,The first value range is 192.168.2.1 ~ 255,The second value ranges from 192.168.1.1 ~ 255These are two CIDR blocks. The last 24 indicates that its subnet mask is 255.255.255.0.Continue to ask: why is the mask the same but not the same CIDR Block?The third segment of their IP addresses is different ..The mask is only used to determine the number of host bits in a CIDR block
achieve communication between the two networks, you must pass through the gateway. If the host in Network a discovers that the destination host for the packet is not on the local network, forwards the packet to its own gateway, which is then forwarded by the gateway to Network B's gateway, and the gateway of Network B is forwarded to a host on network B. The same is true for network B to forward packets to network a so that only the IP address of the gateway is set up, the TCP/IP protocol can r
-based IPMPa) Configure the/etc/hosts file# vi/etc/hosts:: 1 localhost127.0.0.1 localhost192.168.0.101 TEST-IXGBE0192.168.0.102 TEST-IXGBE1192.168.0.100 Test LoghostHere is the relationship for setting up DNS192.168.0.101 corresponding TEST-IXGBE0 (test IP for NIC IXGBE0)192.168.0.102 corresponding TEST-IXGBE1 (test IP for NIC Ixgbe1)192.168.0.100 corresponding to test (the data ip,test for the IPMP group is the hostname of the external service)b) Configure the/etc/hostname.interface file# VI/ET
the routing table are displayed.
Command format
The route command format is as follows:
Route [-nee]Route add [-net|-host] [network or host] netmask [mask] [Gw|dev]Route del [-net|-host] [network or host] netmask [mask] [Gw|dev]
It is important to note that the route is added directly under the command line to add a route that is not permanently saved and is invalidated when the network card is restart
/etc/sysconfig/network3./etc/sysconfig/static-router:Any net x.x.x.x/24 GW Y.y.y.yFormat: RouteFormat:/sbin/routeUsed to print the routing table (display the current routing table).Use the full path to execute the route command when non-root users are in use.Command parameters[Email protected] ~]# route [-nee][[email protected] ~]# route add [-net|-host] [domain or host] netmask [mask] [Gw|dev][[email protected] ~]# route del [-net|-host] [domain or h
View the Linux kernel routing table Use the following route command to view the Linux kernel routing table. # route Destination gateway genmask flags Metric Ref use IFAC E 192.168.0.0 * 255.255.255.0 u 0 0 0 eth0 169.254.0.0 * 255.255.0.0 u 0 0 0 eth0 default 192.168.0.1 0.0.0.0 NBS P ug 0 0 0 eth0 The output item description output of the route command Description Destination Target network segment or host Gateway NB
successfully reach 172.16.200.1. Is that true?
He can also return to 172.16.7.5,Let's log on to the sw root Interface and take a look.
# RouteKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use Iface202.98.30.69 0.0.0.0 255.255.255.255.u 0 0 eth1172.16.200.0 0.0.0.0 255.255.255.0 U 0 0 0 eth00.0.0.0 202.98.56.94 0.0.0.0 UG 0 0 0 eth1
From this routing table, we can clearly know that there are only three routes, and when the returned data packet is 172.16.200.1
The packet is
BrieflyThe Qnetworkaddressentry class is supported by a network interface that stores an IP address, subnet mask, and broadcast address.Each network interface can contain 0 or more IP addresses, which in turn can be associated to a subnet mask and/or a broadcast address (depending on the support of the operating system).This class represents one such group.
Briefly
Common interfaces
Use
More references
Common interfaces
Qhostaddress Broadcast () const
Retu
Linux Network attribute configuration commands and management details
I. Linux Network attribute Configuration
1. Network Access for Linux Hosts
IP/NETMASK: Implement Local Network Communication
Routing (GATEWAY): Cross-network communication is supported.
DNS server address: Host Name-based communication. Linux can have three DNS addresses.
When the first address goes down, it will find its standby address. If the first address cannot be resolved, it
netmask 255.255.255.0
Route delete 172.16.5/24 172.16.5.13
30 operations on the host
Add vi/etc/hosts:
172.16.5.30 edgesvr1
172.16.5.31 edgesvr2
172.16.5.13 wisco_sit
Issue the dsserver start command on the 30 host with Edge Server installed to start DispatchingServer (because/usr/java131 is already in the system environment path, you can directly execute it)
Run lbadmin to open the Load Balancer Configuration window.
Right-click Dispatcher and choos
(one may be due to low memory), and the number of overrun (usually occurs when the receiver receives data faster than the core processing speed). Parameters represents the various parameters supported by Ifconfig, which can be used to easily monitor and change the state of a network interface. Ifconfig command-line arguments:
Up activates the specified interface
Down to close the specified interface. This parameter can effectively block the IP traffic through the specified interface, a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.